package com.ruoyi.myweb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻对象 web_news
 * 
 * @author zjs
 * @date 2023-09-12
 */
public class WebNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String newsTitle;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String newsContent;

    /** 新闻缩略图 */
    @Excel(name = "新闻缩略图")
    private String newsThumb;

    /** 新闻描述 */
    @Excel(name = "新闻描述")
    private String newsDescription;

    /** 新闻类别 */
    @Excel(name = "新闻类别")
    private Long newsCat;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNewsTitle(String newsTitle) 
    {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() 
    {
        return newsTitle;
    }
    public void setNewsContent(String newsContent) 
    {
        this.newsContent = newsContent;
    }

    public String getNewsContent() 
    {
        return newsContent;
    }
    public void setNewsThumb(String newsThumb) 
    {
        this.newsThumb = newsThumb;
    }

    public String getNewsThumb() 
    {
        return newsThumb;
    }
    public void setNewsDescription(String newsDescription) 
    {
        this.newsDescription = newsDescription;
    }

    public String getNewsDescription() 
    {
        return newsDescription;
    }
    public void setNewsCat(Long newsCat) 
    {
        this.newsCat = newsCat;
    }

    public Long getNewsCat() 
    {
        return newsCat;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("newsTitle", getNewsTitle())
            .append("newsContent", getNewsContent())
            .append("newsThumb", getNewsThumb())
            .append("newsDescription", getNewsDescription())
            .append("newsCat", getNewsCat())
            .toString();
    }
}
